package com.yt.generator;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 * 静态文件生成
 */
public class StaticGenerator {

    public static void main(String[] args) {
        String projectPath = System.getProperty("user.dir");
        //System.out.println(projectPath);
        String inputPath = projectPath + File.separator + "code-gen-backend" + File.separator + "code-gen-demo-projects"
                + File.separator + "acm-template";
        System.out.println(inputPath);
        String outputPath = projectPath;
        copyFiles(inputPath, outputPath);

    }

    public static void copyFiles(String inputPath, String outputPath) {
        FileUtil.copy(inputPath, outputPath, false);
    }
}
